package com.ruoyi.project.exam.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ruoyi.project.exam.domain.ExamModel;
import com.ruoyi.project.exam.domain.ExamPaperModel;
import com.ruoyi.project.exam.domain.ExamRepoModel;

public interface ExamMapper {

	public List<ExamModel> selectExamList(ExamModel model);

	public void insertExam(@Param("model")ExamModel model, @Param("examRepoList")List<ExamRepoModel> examRepoList, @Param("list")List<ExamPaperModel> examPapeList);

	public int deleteExamByIds(String[] strArray);

	public ExamModel selectExamById(@Param("id")String id);

	public void delExamRepoAndPaper(@Param("id")String id);

	public void updateExam(@Param("model")ExamModel model, @Param("examRepoList")List<ExamRepoModel> examRepoList, @Param("list")List<ExamPaperModel> examPapeList);

	public int releaseExamById(@Param("id")String id);

	public List<ExamModel> selectExamOnlineList(ExamModel model);

	public ExamModel selectUserExam(@Param("id")String id, @Param("userId")Long userId);

}
